﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace WebApp.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Welcome()
        {
            if (Request.IsAuthenticated)
            {
                return RedirectToAction("Index");
            }
            return View();
        }

        public ActionResult Index()
        {
            if(!Request.IsAuthenticated)
            {
                return RedirectToAction("Welcome");
            }

            //return View();
            return RedirectToAction("Index", "ClientProfile");
        }

        public ActionResult Website()
        {
            //TODO:get from settings.json
            string websiteUrl = "http://accufindgroup.com/";
            return Redirect(websiteUrl);
        }
    }
}